package com.gxa.mapper;

import com.gxa.domain.dto.FindUserByNameDTO;
import com.gxa.domain.entity.User;
import com.gxa.domain.vo.FindUserByNameVO;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface UserMapper {

    User queryById(int userId);

    User findUserByUsername(String account  );



    void upLastLoginTime(@Param("userLoginCount") int userLoginCount,@Param("lastLoginTime") String lastLoginTime);


    List<FindUserByNameVO> findUserByName(@Param("name") String name, @Param("offset") int offset, @Param("rows") int rows);

    Integer countSysUserByCondition(@Param("name") String name);

    int add(User user);//接口添加用户方法
}
